package io.renren.modules.achievements.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.achievements.dao.ResearchRewardHistoryDao;
import io.renren.modules.achievements.entity.ResearchRewardHistoryEntity;
import io.renren.modules.achievements.service.ResearchRewardHistoryService;


@Service("researchRewardHistoryService")
public class ResearchRewardHistoryServiceImpl extends ServiceImpl<ResearchRewardHistoryDao, ResearchRewardHistoryEntity> implements ResearchRewardHistoryService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ResearchRewardHistoryEntity> page = this.page(
                new Query<ResearchRewardHistoryEntity>().getPage(params),
                new QueryWrapper<ResearchRewardHistoryEntity>()
        );

        return new PageUtils(page);
    }

}